import request from "@/api/request";
import {
    UPDATE_FRIEND_DYNAMIC_READSTATUS_API,
    GET_FRIENDS_DYNAMIC_API,
    GET_FRIEND_DYNAMIC_BYID_API
} from "@/api/api_constant";

export const updateFriendDynamicReadStatus = async (_id) => {
     return await request.put(UPDATE_FRIEND_DYNAMIC_READSTATUS_API,{
         _id
     })
}

export const getFriendDynamic = async (_id) => {
    return await request.get(GET_FRIENDS_DYNAMIC_API,{
        params:{
            _id
        }
    })
}

export const getFriendDynamicById = async (_id) => {
    return await request.get(GET_FRIEND_DYNAMIC_BYID_API,{
        params:{
            _id
        }
    })
}